package org.hibernate.validator.xml;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
        name = "payloadType",
        propOrder = {"value"}
)
public class PayloadType {
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected List<String> value;

    public PayloadType() {
    }

    public List<String> getValue() {
        if (this.value == null) {
            this.value = new ArrayList();
        }

        return this.value;
    }
}